package com.itheima.HomeWork.Demo01;

public interface Calculator {
    int calc(int i);
}
class CalculatorDemo{
    public void useCalcultar(Calculator calculator){
        System.out.println(calculator.calc(1));
    }
}
class LambdaTest4{
    public static void main(String[] args) {
        new CalculatorDemo().useCalcultar(i->1+i);
    }
}